
import weathers from '@/data/weather.json'
export const useWeatherIcon = <K extends keyof T, T>(key: K, obj: T = (weathers as T)): T[K] => obj[key]